import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import moment from 'moment'

// 引入element-ui
import elementUI from 'element-ui'
// 引入axios
import axios from 'axios'
// 配置axios基础路径
axios.defaults.baseURL = '/api';
// 将axios放入vue的原型对象中
Vue.prototype.$axios = axios;
Vue.prototype.moment = moment;

// 引入element-ui样式'
import 'element-ui/lib/theme-chalk/index.css';
// 将elementui注册成为vue的插件
Vue.use(elementUI);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
